<template>
  <div class="w-full h-full flex justify-center items-center">
    <n-result status="404" title="404 资源不存在" description="生活总归带点荒谬">
      <template #footer>
        <n-button @click="gotoindex()">去首页</n-button>
      </template>
    </n-result>
  </div>
</template>

<script setup>
import {useRouter} from "vue-router"
import { NButton,NResult } from 'naive-ui'
const router = useRouter()
// 点击回到首页
const gotoindex=()=>{
  console.log("点击回到首页")
  router.push("/")
}
</script>

<style scoped>

</style>